<?php
session_save_path('sessions');
session_start();

// Check if we're in a valid session
// If we are, then we go to login_success.php to be routed accordingly.
if( !isset($_SESSION['user']) || $_SESSION['user'] == null )
    include("include/header.php");
    
else
    header("location:login_success.php");

?>


<body>
  <div id="wrapper">
    <div id="header"> </div>
    <div id="left">
      <div id="logo">
        <h1>Home Sale</h1>
        <p>Only By Owner</p>
      </div>
      <div id="nav">
        <ul>
          <li class="important"><a href="index.php">Home</a></li>
          <li><a href="main_login.php">Login</a></li>
          <li><a href="index.php">---</a></li>
          <li><a href="searchhouse.php">Search House</a></li>
          <li><a href="index.php">---</a></li>
          <li><a href="logout.php">Logout</a></li>
        </ul>
      </div>
      <div id="news">
        <h2>Latest News</h2>
        <h3>02/03/07</h3>
        <p>TEXT HERE</p>
        <div class="hr-dots"> </div>
        <h3>01/03/07</h3>
        <p>TEXT HERE</p>
        <p class="more"><a href="index.php">more</a></p>
      </div>
      <div id="support">
        <p>gnc353_2@encs.concordia.ca</p>
      </div>
    </div>
    <div id="right">
      <h2>Welcome to Our Site!</h2>
      <div id="welcome">
        <form action="upload_file.php" method="post" enctype="multipart/form-data">
          <label for="file">Filename:</label>
          <input type="file" name="file" id="file" />
          <input type="submit" name="submit" value="Submit" />
        </form>   
      </div>
      <h3></h3>
      <div id="profile">
        <div id="corp">
          <div id="corp-img">
            Corporate Building
          </div>
          <p>TEXT HERE</p>
        </div>
        <div id="indu">
          <div id="indu-img">
            Industrial
          </div>
          <p>TEXT HERE</p>
        </div>
        <div class="clear"> </div>
        <p class="more"><a href="index.php">View Details</a></p>
      </div>
    </div>
    <div class="clear"> </div>
    <div id="spacer"> </div>
    <div id="footer">
      <div id="copyright">
        &copy; Template taken from http://www.freewebsitetemplates.com/
      </div>
	  <div id="footerline"></div>
    </div>
	
  </div>
</body>
</html>